import request from '@/utils/request'

// 移交单列表
export function selectHandOverDaVo(query) {
  return request({
    url: '/archive/yijiao/selectHandOverDaVo',
    method: 'POST',
    params: query
  })
}

//删除移交中的档案

export function delHandOverDa(query) {
    return request({
      url: '/archive/yijiao/delHandOverDa',
      method: 'POST',
      params: query
    })
  }

//添加移交登记单

export function insertHandOverReceive(data) {
    return request({
      url: '/archive/yijiaoDan/insertHandOverReceive',
      method: 'POST',
      data: data
    })
  }

  //添加移交登记单单体
export function insertNewHandOverReceive(data) {
  return request({
    url: '/archive/yijiaoDan/insertNewHandOverReceive',
    method: 'POST',
    data: data
  })
}

  // 在线移交--查询移交单列表
  export function selectHandOverReceive(query) {
    return request({
      url: '/archive/yijiaoDan/selectHandOverReceive',
      method: 'POST',
      params: query
    })
  }

  // 离线移交--查询移交单列表
  export function selectHandOverReceive1(query) {
    return request({
      url: '/archive/yijiaoDan/selectHandOverReceive1',
      method: 'POST',
      params: query
    })
  }

//获取文件大小
export function getFileSize(query) {
  return request({
    url: '/archive/yijiaoDan/getFileSize',
    method: 'POST',
    params: query
  })
}

//获取文件个数
export function getFileCount(query) {
  return request({
    url: '/archive/yijiaoDan/getFileCount',
    method: 'POST',
    params: query
  })
}
// 在线移交--查询单个移交单
export function selectHandOverReceiveById(query) {
  return request({
    url: '/archive/yijiaoDan/selectHandOverReceiveById',
    method: 'POST',
    params: query
  })
}

// 离线移交--查询单个移交单
export function selectHandOverReceiveById1(query) {
  return request({
    url: '/archive/yijiaoDan/selectHandOverReceiveById1',
    method: 'POST',
    params: query
  })
}

// 在线移交--标记接收
export function jsState(query) {
  return request({
    url: '/archive/yijiaoDan/jsState',
    method: 'POST',
    params: query
  })
}

// 离线移交--标记接收
export function jsState1(query) {
  return request({
    url: '/archive/yijiaoDan/jsState1',
    method: 'POST',
    params: query
  })
}

//四性检测方案不分页
export function getdetectionSchemeList(query) {
  return request({
    url: '/archive/detectionScheme/getList',
    method: 'GET',
    params: query
  })
}

//移交包四性检测
export function detection(data) {
  return request({
    url: '/archive/detectionObject/detection',
    method: 'POST',
    data: data
  })
}


//获取详情

export function listinfo(query) {
  return request({
    url: '/archive/inspectionLogs/list',
    method: 'GET',
    params: query
  })
}


//门类列表

export function categorylist(query) {
  return request({
    url: '/archive/category/list',
    method: 'GET',
    params: query
  })
}


//获取用户相关信息   长连接地址
export function userMessage(query) {
  return request({
    url: '/archive/detectionObject/userMessage',
    method: 'POST',
    params: query
  })
}

// 在线移交--在线推送
export function onlinpush(query) {
  return request({
    url: '/archive/yijiaoDan/onlinpush',
    method: 'post',
    params: query
  })
}

// 在线移交--在线推送
export function selectDept(id) {
  return request({
    url: '/archive/yijiao/selectDept/'+id,
    method: 'GET',
  })
}

export function getAuthority() {
  return request({
    url: '/archive/yijiao/getAuthority',
    method: 'GET'
  })
}